﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class BannerGiaoDienBUS
    {
        public static List<BannerGiaoDienDTO> getAll()
        {
            return BannerGiaoDienDAO.getAll();
        }

        public static BannerGiaoDienDTO getAlongCode(int maBanner)
        {
            return BannerGiaoDienDAO.getAlongCode(maBanner);
        }

        public static void Insert(BannerGiaoDienDTO _insert)
        {
            BannerGiaoDienDAO.Insert(_insert);
        }

        public static void Delete(int maBanner)
        {
            BannerGiaoDienDAO.Delete(maBanner);
        }

        public static void Update(BannerGiaoDienDTO dto)
        {
            BannerGiaoDienDAO.Update(dto);
        }
    }
}
